xquery version "1.0";
<erg>{
for $v in ProfUndVL/Professoren/Prof
where $v/Rang = "C4"
return
<Rang4>
{count($v)}
</Rang4>
}
{
for $v2 in ProfUndVL/Professoren/Prof
where $v2/Rang = "C3"
return
<Rang3>
{count($v2)}
</Rang3>
}
{
for $v3 in ProfUndVL/Professoren/Prof
where $v3/Rang = "C2"
return
<Rang2>
{count($v3)}
</Rang2>
}
{
for $v4 in ProfUndVL/Professoren/Prof
where $v4/Rang = "C1"
return
<Rang1>
{count($v4)}
</Rang1>
}</erg>